home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / CKIT210.ARJ / CKITDEMO.MAK < prev    next >
Makefile  |  1991-12-22  |  1KB  |  51 lines

  1. #  Turbo C make file for CKIT
  2. #
  3. #  You will need to set some paths below for TLINK and
  4. # set you memory model below to MODEL=s or MODEL=m for
  5. # whichever memory model you are using. (small or medium)
  6. #
  7.  
  8. # Must have this MACRO defined for CKITDEMO to compile correctly
  9. # This is only necassary when compiling the CKITDEMO.C program
  10. # since it was designed to be compiled with MSC or TURBO C.
  11. # (the -DCOMPILER switch in ckitdemo.mak)
  12. -DCOMPILER=TURBOC
  13.  
  14. # Memory model to use
  15. MODEL=m
  16.  
  17.  
  18. # compiler flags, MUST use the -a flag for WORD alignment!
  19. # These flags are set for NO stack checking, WORD alignment, compile only,
  20. # standard stack frame. Macro COMPILER is used CKITDEMO.C
  21.  
  22. CFLAGS=-m$(MODEL) -N- -a -r- -c -k -v -M- -y- -DCOMPILER=TURBOC
  23. TCC=TCC $(CFLAGS)
  24.  
  25. # Library locations
  26. LIB=E:\TC\LIB
  27.  
  28.  
  29. #General inference rules
  30. #Rule to make .OBJ from .C files
  31.  
  32. .C.OBJ:
  33.       $(TCC) $*.C
  34.  
  35. # Rule to make executable
  36. OBJLIST=ckitdemo.obj
  37.  
  38. ckitdemo.exe:  $(OBJLIST)
  39.  
  40. # I could not get TLINK to look in the enviroment for LIB paths
  41. # or get TCC to include the info. for TLINK to use the LIB files
  42. # needed.  I had to include the paths\filenames on the cmd line
  43. # below so you will need to modify them for you paths etc.
  44.  
  45.  TLINK /l /m $(LIB)\c0$(MODEL) $(OBJLIST), ckitdemo.exe,, \
  46.   $(LIB)\c$(MODEL).lib ckit_t$(MODEL).lib
  47.  
  48. # Dependencies for obj files
  49.  
  50. ckitdemo.obj:  ckitdemo.c  ckitdemo.h ckit.h
  51.